Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Conversation

@gregorybchris
Copy link

@gregorybchris gregorybchris commented Sep 5, 2019

Fixes #254

The recently added Linear SVM learner uses the parameter name lambda_ to avoid Python reserved word conflicts with lambda. This PR changes lambda_ to l2_regularization. This is more descriptive and avoids confusion where the trailing underscore could be mistaken as indicating a private variable.

:param caching: Whether trainer should cache input training data.
:param lambda_: Regularizer constant.
:param regularization: Regularizer constant.
Copy link
Member

@ganik ganik Sep 6, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These 3 files are auto generated from manifest.json. You could use manifest_diff.json to specify renaming of the parameter then re-run entrypoint_compiler tools with generate options set to True. There are many examples in manifest_diff.json how to do renaming. #Resolved

@ganik
Copy link
Member

ganik commented Sep 7, 2019

duplicate of #259

@ganik ganik closed this Sep 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Linear SVM lambda parameter name should be public

2 participants